home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / Science / Biology / WayeBox Folder / WayeBox 1.1 / box3 / background_2899.txt < prev    next >
Encoding:
Text File  |  1990-06-13  |  9.4 KB  |  447 lines

  1. -- background: 2899 from stack: in
  2. -- bmap block id: 4938
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: waye address
  6.  
  7.  
  8. -- part 103 (button)
  9. -- low flags: 00
  10. -- high flags: 8000
  11. -- rect: left=247 top=292 right=342 bottom=354
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 27056 / 27056
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: go to stack 1
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   get word 3 of field 3
  23.   go to card id it of stack "BOX 2"
  24.   -- && put your own stack name in place of BOX 2
  25.  
  26.  
  27. end mouseUp
  28.  
  29.  
  30.  
  31. -- part 114 (button)
  32. -- low flags: 00
  33. -- high flags: 0000
  34. -- rect: left=97 top=294 right=322 bottom=134
  35. -- title width / last selected line: 0
  36. -- icon id / first selected line: 1014 / 1014
  37. -- text alignment: 1
  38. -- font id: 0
  39. -- text size: 12
  40. -- style flags: 0
  41. -- line height: 16
  42. -- part name: Prev
  43. ----- HyperTalk script -----
  44. on mouseUp
  45.   go to previous card
  46. end mouseUp
  47.  
  48.  
  49. -- part 115 (button)
  50. -- low flags: 00
  51. -- high flags: 0000
  52. -- rect: left=136 top=295 right=323 bottom=172
  53. -- title width / last selected line: 0
  54. -- icon id / first selected line: 1013 / 1013
  55. -- text alignment: 1
  56. -- font id: 0
  57. -- text size: 12
  58. -- style flags: 0
  59. -- line height: 16
  60. -- part name: Next
  61. ----- HyperTalk script -----
  62. on mouseUp
  63.   go to next card
  64. end mouseUp
  65.  
  66.  
  67. -- part 125 (button)
  68. -- low flags: 00
  69. -- high flags: 8000
  70. -- rect: left=0 top=294 right=342 bottom=57
  71. -- title width / last selected line: 0
  72. -- icon id / first selected line: 21209 / 21209
  73. -- text alignment: 1
  74. -- font id: 0
  75. -- text size: 12
  76. -- style flags: 0
  77. -- line height: 16
  78. -- part name: date
  79. ----- HyperTalk script -----
  80. on mouseUp
  81.   put the date into bkgnd field "date"
  82.  
  83. end mouseUp
  84.  
  85.  
  86.  
  87. -- part 127 (field)
  88. -- low flags: 00
  89. -- high flags: 0000
  90. -- rect: left=184 top=324 right=342 bottom=269
  91. -- title width / last selected line: 0
  92. -- icon id / first selected line: 0 / 0
  93. -- text alignment: 0
  94. -- font id: 3
  95. -- text size: 12
  96. -- style flags: 0
  97. -- line height: 16
  98. -- part name: date
  99.  
  100.  
  101. -- part 128 (field)
  102. -- low flags: 00
  103. -- high flags: 0000
  104. -- rect: left=163 top=307 right=326 bottom=270
  105. -- title width / last selected line: 0
  106. -- icon id / first selected line: 0 / 0
  107. -- text alignment: 0
  108. -- font id: 3
  109. -- text size: 12
  110. -- style flags: 0
  111. -- line height: 16
  112. -- part name: ID
  113.  
  114.  
  115. -- part 129 (field)
  116. -- low flags: 00
  117. -- high flags: 0000
  118. -- rect: left=443 top=300 right=318 bottom=512
  119. -- title width / last selected line: 0
  120. -- icon id / first selected line: 0 / 0
  121. -- text alignment: 0
  122. -- font id: 3
  123. -- text size: 12
  124. -- style flags: 0
  125. -- line height: 16
  126. -- part name: name
  127.  
  128.  
  129. -- part 130 (field)
  130. -- low flags: 00
  131. -- high flags: 0000
  132. -- rect: left=388 top=321 right=340 bottom=495
  133. -- title width / last selected line: 0
  134. -- icon id / first selected line: 0 / 0
  135. -- text alignment: 0
  136. -- font id: 3
  137. -- text size: 12
  138. -- style flags: 0
  139. -- line height: 16
  140. -- part name: freezer name
  141.  
  142.  
  143. -- part 132 (button)
  144. -- low flags: 00
  145. -- high flags: 8003
  146. -- rect: left=2 top=272 right=294 bottom=102
  147. -- title width / last selected line: 0
  148. -- icon id / first selected line: 0 / 0
  149. -- text alignment: 1
  150. -- font id: 0
  151. -- text size: 12
  152. -- style flags: 0
  153. -- line height: 16
  154. -- part name: go to shelf
  155. ----- HyperTalk script -----
  156. on mouseUp
  157.   push card
  158.   if field "shelf name" is empty then
  159.     ask "what is the name of the shelf"
  160.     if it is empty then exit mouseUp
  161.     put it into field "Shelf Name"
  162.   end if
  163.   put field "shelf Name" into ShelfName
  164.   go to stack "box2"
  165.   go to card item 1 of ShelfName
  166. end mouseUp
  167.  
  168.  
  169.  
  170.  
  171. -- part 133 (button)
  172. -- low flags: 00
  173. -- high flags: 8003
  174. -- rect: left=106 top=271 right=295 bottom=211
  175. -- title width / last selected line: 0
  176. -- icon id / first selected line: 0 / 0
  177. -- text alignment: 1
  178. -- font id: 0
  179. -- text size: 12
  180. -- style flags: 0
  181. -- line height: 16
  182. -- part name: rename button
  183. ----- HyperTalk script -----
  184. on mouseUp
  185.   ask "What's the button number ?"
  186.   put it into bu
  187.   if it is empty then exit mouseUp
  188.   set the script of button bu to empty
  189.   get the script of bkgnd button "script template"
  190.   set the script of button bu to it
  191.   set the name of button bu to item 1 of field "name"
  192.  
  193. end mouseUp
  194.  
  195.  
  196.  
  197. -- part 134 (button)
  198. -- low flags: 00
  199. -- high flags: 8003
  200. -- rect: left=212 top=271 right=295 bottom=273
  201. -- title width / last selected line: 0
  202. -- icon id / first selected line: 0 / 0
  203. -- text alignment: 1
  204. -- font id: 0
  205. -- text size: 12
  206. -- style flags: 0
  207. -- line height: 16
  208. -- part name: pop card
  209. ----- HyperTalk script -----
  210. on mouseUp
  211.   pop card
  212. end mouseUp
  213.  
  214.  
  215.  
  216. -- part 135 (button)
  217. -- low flags: 00
  218. -- high flags: 0003
  219. -- rect: left=339 top=269 right=292 bottom=360
  220. -- title width / last selected line: 0
  221. -- icon id / first selected line: 0 / 0
  222. -- text alignment: 1
  223. -- font id: 0
  224. -- text size: 12
  225. -- style flags: 0
  226. -- line height: 16
  227. -- part name: script template
  228. ----- HyperTalk script -----
  229. on mouseUp
  230.   get word 3 of field 3
  231.   go to card id it of stack "box4"
  232. end mouseUp
  233.  
  234.  
  235.  
  236. -- part 136 (field)
  237. -- low flags: 00
  238. -- high flags: 0000
  239. -- rect: left=388 top=288 right=302 bottom=459
  240. -- title width / last selected line: 0
  241. -- icon id / first selected line: 0 / 0
  242. -- text alignment: 0
  243. -- font id: 3
  244. -- text size: 12
  245. -- style flags: 0
  246. -- line height: 16
  247. -- part name: location
  248.  
  249.  
  250. -- part 137 (field)
  251. -- low flags: 00
  252. -- high flags: 0000
  253. -- rect: left=370 top=303 right=318 bottom=443
  254. -- title width / last selected line: 0
  255. -- icon id / first selected line: 0 / 0
  256. -- text alignment: 0
  257. -- font id: 3
  258. -- text size: 12
  259. -- style flags: 0
  260. -- line height: 16
  261. -- part name: shelf name
  262.  
  263.  
  264. -- part 139 (button)
  265. -- low flags: 00
  266. -- high flags: 8003
  267. -- rect: left=179 top=288 right=310 bottom=279
  268. -- title width / last selected line: 0
  269. -- icon id / first selected line: 0 / 0
  270. -- text alignment: 1
  271. -- font id: 0
  272. -- text size: 12
  273. -- style flags: 0
  274. -- line height: 16
  275. -- part name: go to freezer
  276. ----- HyperTalk script -----
  277. on mouseUp
  278.   push card
  279.   if field "freezer name" is empty then
  280.     ask "what is the name of the freezer"
  281.     if it is empty then exit mouseUp
  282.     put it into field "freezer Name"
  283.   end if
  284.  
  285.   put field "freezer Name" into FreezerName
  286.   go to stack "box2"
  287.   go to card item 1 of FreezerName
  288. end mouseUp
  289.  
  290.  
  291.  
  292.  
  293. -- part 140 (button)
  294. -- low flags: 00
  295. -- high flags: 8003
  296. -- rect: left=89 top=323 right=341 bottom=179
  297. -- title width / last selected line: 0
  298. -- icon id / first selected line: 0 / 0
  299. -- text alignment: 1
  300. -- font id: 0
  301. -- text size: 12
  302. -- style flags: 0
  303. -- line height: 16
  304. -- part name: no. of cards
  305. ----- HyperTalk script -----
  306. on mouseUp
  307.   set userlevel to 5
  308.   put empty into message box
  309.   get number of cards
  310.   put "The total Number of Cards = " into word 1 of message
  311.   put it into word 7 of message
  312.   set userlevel to 2
  313. end mouseUp
  314.  
  315.  
  316.  
  317. -- part 141 (button)
  318. -- low flags: 00
  319. -- high flags: 8003
  320. -- rect: left=364 top=270 right=290 bottom=436
  321. -- title width / last selected line: 0
  322. -- icon id / first selected line: 0 / 0
  323. -- text alignment: 1
  324. -- font id: 0
  325. -- text size: 12
  326. -- style flags: 0
  327. -- line height: 16
  328. -- part name: Empty all 
  329. ----- HyperTalk script -----
  330. on mouseUp
  331.   answer "Do you want to empty all fields?" with "yes" or "no" or "cancel"
  332.   if it is "no" then exit mouseUp
  333.   if it is "cancel" then exit mouseUp
  334.   repeat with i=1 to 7
  335.     put empty into field i
  336.   end repeat
  337. end mouseUp
  338.  
  339.  
  340.  
  341. -- part 143 (field)
  342. -- low flags: 00
  343. -- high flags: 0000
  344. -- rect: left=105 top=18 right=36 bottom=462
  345. -- title width / last selected line: 0
  346. -- icon id / first selected line: 0 / 0
  347. -- text alignment: 0
  348. -- font id: 3
  349. -- text size: 12
  350. -- style flags: 256
  351. -- line height: 16
  352. -- part name: name of box
  353.  
  354.  
  355. -- part 145 (button)
  356. -- low flags: 00
  357. -- high flags: 8000
  358. -- rect: left=51 top=294 right=335 bottom=99
  359. -- title width / last selected line: 0
  360. -- icon id / first selected line: 32462 / 32462
  361. -- text alignment: 1
  362. -- font id: 0
  363. -- text size: 12
  364. -- style flags: 0
  365. -- line height: 16
  366. -- part name: Help
  367. ----- HyperTalk script -----
  368. on mouseUp
  369.   push card
  370.   go to card id 11167 of stack "box4"
  371. end mouseUp
  372.  
  373.  
  374.  
  375.  
  376. -- part 147 (button)
  377. -- low flags: 00
  378. -- high flags: 8003
  379. -- rect: left=430 top=268 right=289 bottom=512
  380. -- title width / last selected line: 0
  381. -- icon id / first selected line: 0 / 0
  382. -- text alignment: 1
  383. -- font id: 0
  384. -- text size: 12
  385. -- style flags: 0
  386. -- line height: 16
  387. -- part name: New Card
  388. ----- HyperTalk script -----
  389. on mouseUp
  390.   answer "Make another card like this one? " with "yes" or "no" or "cancel"
  391.   if it is "cancel" then exit mouseUp
  392.   if it is "no" then
  393.     put "Go to the card which you want to copy" into the message box
  394.     exit mouseUp
  395.   end if
  396.  
  397.   if it is "yes" then
  398.  
  399.     domenu "copy Card"
  400.     domenu paste card
  401.     set name of this card to empty
  402.     repeat with i=1 to number of fields
  403.       put empty into field i
  404.     end repeat
  405.     repeat with i=1 to number of card fields
  406.       put empty into field i
  407.     end repeat
  408.     put empty into field "Name"
  409.   end if
  410.  
  411. end mouseUp
  412.  
  413.  
  414.  
  415. -- part 148 (button)
  416. -- low flags: 00
  417. -- high flags: 8003
  418. -- rect: left=275 top=269 right=293 bottom=363
  419. -- title width / last selected line: 0
  420. -- icon id / first selected line: 0 / 0
  421. -- text alignment: 1
  422. -- font id: 0
  423. -- text size: 12
  424. -- style flags: 0
  425. -- line height: 16
  426. -- part name: Name Card
  427. ----- HyperTalk script -----
  428. on mouseUp
  429.   put empty into NameCard
  430.   if field "Name of Box" is empty
  431.   then
  432.   ask "Please enter the name of this card:"
  433.   if it is empty then exit mouseUp
  434.   put it into NameCard
  435.   set the name of this card to empty
  436.   put NameCard into field "Name of Box"
  437. end if
  438.  
  439. if field "Name of Box" is not empty
  440. then
  441. put first line of field "Name of Box" into NameCard
  442. set the name of this card to NameCard
  443. end if
  444.  
  445. end mouseUp
  446.  
  447.